<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
export default {
    mixins: [
        Vue.prototype.$vFN.Mixins.Base,
        Vue.prototype.$vFN.Mixins.Page,
        Vue.prototype.$vFN.Mixins.Table,
    ],
    data() {
        return {
            appWindow: window,
            // 页面接口地址
            apiUrl: {
                list: "mall-site-portal/decoration/list",
                delete: "mall-site-portal/decoration/delete",
            },
            // 表格查询数据
            mixinTable_tableSearchData: {
                templateName: "",
            },
            mixinTable_tableSearchConst: {
                templateType: 11,
            },
            // 表格数据
            tableData: [],
            // 表格数据删除展示结构
            tableDeleteConfig: {
                columns: [
                    {
                        label: "名称",
                        prop: "templateName",
                        type: "",
                    },
                    {
                        label: "是否默认",
                        prop: "status",
                        type: "",
                    },
                ],
            },
        };
    },
    methods: {
        handleCurrentChange(val) {
            console.error(val);
        },
        goto(id_) {
            this.$vFN.Tools.mainOpenPage({
                url: this.$vFN.Tools.toUrl({
                    path: "/site/design/goodsGroupBuying",
                    query: {
                        id: id_,
                    },
                }),
            });
        },
        // 初始化
        async init() {
            this.mixinTable_initSearchData("tableData");
        },
    },
    mounted() {
        this.init();
    },
    activated() {},
};
</script>
